package unit3.part1;

import java.util.Scanner;

public class IfTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        // if else
        if (x >= 60) {
            System.out.println("及格");
        } else {
            System.out.println("不及格");
        }
        System.out.println("=====================");

        // 嵌套
        if (x >= 60) {
            if (x >= 90) {
                System.out.println("优秀");
            } else {
                System.out.println("中等");
            }
        } else {
            if (x >= 40) {
                System.out.println("可以补考");
            } else {
                System.out.println("重修");
            }
        }
        System.out.println("=====================");

        // elseif
        if (x >= 90) {
            System.out.println("优秀");
        } else if (x >= 60) {
            System.out.println("中等");
        } else if (x >= 40) {
            System.out.println("可以补考");
        } else {
            System.out.println("重修");
        }
        System.out.println("=====================");

        // switch
        int score = x / 10;
        switch (score) {
            case 10:
            case 9:
                System.out.println("优秀");
                break;
            case 8:
            case 7:
            case 6:
                System.out.println("中等");
                break;
            case 5:
            case 4:
                System.out.println("可以补考");
                break;
            default:
                System.out.println("重修");
        }
    }
}
